$OpenBSD: patch-backend_dll_c,v 1.6 2017/05/23 13:00:46 ajacoutot Exp $
Index: backend/dll.c
--- backend/dll.c.orig
+++ backend/dll.c
@@ -420,7 +420,7 @@ load (struct backend *be)
 # elif defined (__APPLE__) && defined (__MACH__)
 #   define POSTFIX ".%u.so"
 # else
-#   define POSTFIX ".so.%u"
+#   define POSTFIX ".so"
 # endif
   mode = getenv ("LD_BIND_NOW") ? RTLD_NOW : RTLD_LAZY;
 #elif defined(HAVE_SHL_LOAD)
@@ -484,7 +484,7 @@ load (struct backend *be)
                                             (be->name)+2, V_MAJOR);
 #else
       snprintf (libname, sizeof (libname), "%s/" PREFIX "%s" POSTFIX,
-		dir, be->name, V_MAJOR);
+		dir, be->name);
 #endif
       DBG (4, "load: trying to load `%s'\n", libname);
       fp = fopen (libname, "r");
